<?php
include 'header.php';
@$worker_id = $_REQUEST['worker_id'];
@$worker = dbSelect('select name from worker where id=:id',array('id'=>$worker_id));
?>
				<div class='col-xs-4'>
   					<div class='panel panel-primary'>
   						<div class='panel-heading'>
   							<div class='panel-title'>编辑[<?php echo $worker['name'];?>]登录信息</div>
   						</div>
   						<form class='form-horizontal' action='ediWorkerLogPro.php?worker_id=<?php echo $worker_id;?>' method='post'>
	   						<div class='panel-body'>
	   							<?php if(!empty($mes)){?>
   									<div class='alert alert-danger'>
   										<?php @print($mes);?>
   										<div class='close' data-dismiss='alert'>&times;</div>
   									</div>
	   							<?php }?>
	   							<div class="form-group <?php echo @$message=="帐号错误"?' has-error':'';?>">
									<label for="login" class="col-xs-4 control-label">登录名</label>
									<div class="col-xs-8">
										<input class="form-control" id="login" placeholder="登录名" name="login" type="text" required="required" >
									</div>
								</div>
								<div class="form-group <?php echo @$message=="密码错误"?' has-error':'';?>">
									<label for="password" class="col-xs-4 control-label">密码</label>
									<div class="col-xs-8">
										<input class="form-control" id="password" placeholder="密码" name="password" type="password" required="required">
									</div>
								</div>
								<div class="form-group <?php echo @$message=="两次新密码输入不一致"?' has-error':'';?>">
									<label for="newPwd" class="col-xs-4 control-label">新密码</label>
									<div class="col-xs-8">
										<input class="form-control" id="newPwd" placeholder="新密码" name="newPwd" type="password" required="required">
									</div>
								</div>
								<div class="form-group <?php echo @$message=="两次新密码输入不一致"?' has-error':'';?>">
									<label for="newPwd2" class="col-xs-4 control-label">确认新密码</label>
									<div class="col-xs-8">
										<input class="form-control" id="newPwd2" placeholder="确认" name="newPwd2" type="password" required="required">
									</div>
								</div>
								<div class='form-group'>
	   								<div class='col-xs-4 col-xs-offset-4'>
		   								<img src='img.php' class='codeImg' />
	   								</div>
	   								<a href='#' class='nextCode'>看不清，换一张</a>
	   							</div>
	   							<div class='form-group <?php echo @$message=="验证码错误"?'has-error':'';?>'>
	   								<label class='col-xs-4 control-label' for='code'>验证码</label>
	   								<div class='col-xs-8'>
		   								<input class='form-control' name='code' id='code' placeholder='验证码' required='required' />
	   								</div>
	   							</div>
	   						<div class='panel-footer text-center'>
   								<button class='btn btn-primary' type='submit'>确定</button>
   								<a href='index.php' class='btn btn-default'>返回</a>
   							</div>
   						</form>
   					</div>
   				</div>
			</div>
		</div>
	<script>
		$(function(){
			
		});
	</script>  
	</body>
</html>